package com.yaolisheng.poetryandode.controller;

import com.yaolisheng.poetryandode.entity.IUser;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * 所有页面的导航栏路径跳转
 *
 * @author yaolisheng
 * @version 1.0
 * @date 2021/6/2 22:55
 */

@Controller
@RequestMapping("nav/")
public class NavController {


    /**
     * 首页
     *
     * @return
     */
    @RequestMapping("/index")
    public String index() {
        return "redirect:/index/index";
    }


    @RequestMapping("/types")
    public String types(){
        return "types";
    }

    @RequestMapping("/tages")
    public String tages(){
        return "tags";
    }

    @RequestMapping("/archives")
    public String archives(){
        return "archives";
    }

    @RequestMapping("/about")
    public String about(){
        return "about";
    }
}
